<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      div {
        height: 300px;
        background-color: skyblue;
      }

      img {
        width: 200px;
        /* 第一种解决方案 */
        /* vertical-align: middle; */
        /* display: block; */
      }
    </style>
  </head>
  <body>
    <div><img src="../../imgs/IMG_3133.jpeg" alt="" /></div>
  </body>
</html>
